import { createRouter, createWebHashHistory } from "vue-router";

import index from "@/views/index.vue";

const routes = [
  {
    path: "/",
    name: "index",
    component: index,
  },
];
const router = createRouter({
  history: createWebHashHistory(),
  routes,
});

// 路由守卫
router.beforeEach((to, from, next) => {
  next();
});
export default router;
